package com.wtx.fitness.service;

import com.wtx.fitness.entity.Announcement;
import java.util.List;

/**
 * 公告服务接口
 */
public interface AnnouncementService {

  /**
   * 获取所有公告
   */
  List<Announcement> getAllAnnouncements();

  /**
   * 分页获取公告
   */
  List<Announcement> getAnnouncementsByPage(int pageNum, int pageSize);

  /**
   * 获取公告详情
   */
  Announcement getAnnouncementById(Integer id);

  /**
   * 添加公告
   */
  int addAnnouncement(Announcement announcement);

  /**
   * 更新公告
   */
  int updateAnnouncement(Announcement announcement);

  /**
   * 删除公告
   */
  int deleteAnnouncement(Integer id);
}